


[data,dir] = GETDIR(data,ch) determines the global axis and direction of
walking
ARGUMENTS
data ... Zoo data
ch ... Channel to use to determine direction. Default 'SACR'
RETURNS
data ... Zoo data with direction information added to 'data.zoosystem.CompInfo.Direction'
walkDir ... Main direction of motion
NOTES
- Axis of walking direction (I or J) chosen based on axis with greatest average velocity
- Direction ('neg' or 'pos') based on whether average velocity is negative or positive